package Test;

public class Test6 {
    public static void main(String[] args) {
        int nubmer = 12345;
        int old = nubmer;
        int count = 0;
        while (nubmer != 0) {
            nubmer /= 10;
            count++;
        }
        int[] arr = new int[count];
        for (int i = arr.length - 1; i >= 0; i--) {
            int ge = old % 10;
            old /= 10;
            arr[i] = ge;
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
